package cn.ekuma.rabbit.spi;

import com.openbravo.pos.base.AppProperties;

public interface I_App  {
	
	boolean initApp(AppProperties props);
	
    public void start();
    
    public void stop();
    
    public APP_STATE getCurrentState();
    
    public enum APP_STATE{
    	STOPED(0),
    	RUN(1),
    	INIT(2),
    	ERROR(3);
    	
    	int state;
    	
    	APP_STATE(int state){
    		this.state=state;
    	}
    }
}
